Skip to content

Handle Bitcast Instruction#1

Open
SHREYASINGH29 wants to merge 1 commit intoaditiraste:lfcpaInstModel_3June2021from
SHREYASINGH29:bitcasthandler
Open

Handle Bitcast Instruction#1
SHREYASINGH29 wants to merge 1 commit intoaditiraste:lfcpaInstModel_3June2021from
SHREYASINGH29:bitcasthandler

Conversation

@SHREYASINGH29
Copy link
Copy Markdown

No description provided.

I = llvm::dyn_cast<llvm::Instruction>(v);
q.push(I);

if(I != nullptr){
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Segmentation fault as I was sometimes a null pointer.

Ins = I;
}//end else
}//end if load
else if(llvm::BitCastInst *BI = llvm::dyn_cast<llvm::BitCastInst>(I)){
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting an infinite loop as bitcast was not supported in return.

Ins = I;
InstInfoMap[I] = II;
}
else {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting infinite loop as other instructions are not supported right now.

} else if (llvm::BitCastInst *BI =
llvm::dyn_cast<llvm::BitCastInst>(Inst->getOperand(0))) {
TokenVec.push_back(this->getTokenWrapper()->getToken(BI->getDestTy()));
} else if(llvm::LoadInst *LI = llvm::dyn_cast<llvm::LoadInst>(Inst->getOperand(0))) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handling one or more load instruction before bitcast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant